package com.fs.chatx.core.util;

import java.util.Map;

public class PromtUtil {
    public static String renderPrompt(String template, Map<String, Object> variables)
    {
        for (Map.Entry<String, Object> entry : variables.entrySet()) {
            String placeholder = "{" + entry.getKey() + "}";
            template = template.replace(placeholder, entry.getValue().toString());
        }
        return template;
    }
}
